writing unit test case