Gradient test under non-parametric random effects models