deleteObject, Better naming and more tests