writting test case