Distribution-free statistical hypotheses testing for stochastic processes