rename TestStatistic with HypothesisTest and pulled two methods to base