move z-test to separate .R