Clean up the test code