Stochastic comparison of tests