Add test for deleteObject method