put the test function in its own file