Added test for subclass methods