added test for object