wrote test cases