Added some more tests for rem and keep.