fixed a problem with a test case