adding test cases for remove()