Updated the test code