fix test statistic
added logs