Text this: Three essays on estimation and testing of nonparametric models.