fixed faulty test case