added test for observing subclass and superclass to test for infinite loop