Nonparametric Testing under Random Projection