fixed bug in locating test comparison for z test and wald test