fixed unit test case for peek