Add test coverage for subclass + metaclass fix.