Updated DeleteObject test cases and added a helper method to test parent