tests for removing objects