test of deleting objects