added automatic selection of test and statistics for non-parametric tests