mended erroneous test case