fixed the erroneous unit test