test that class methods get inherited