fixed the exception for the test script