Add tests for subtype for objects with virtual