Testing hypotheses for non-parametric data