please help to write a test case