add test to verify that subsubclasses are the right instance