unit test for Object class