test for object inheritence.