z-test to Wald-test