added tests to ensure things work when inherited