separate the t-test function