Move test code to the test directory.