Fix the test code