split the test function