Add tests for Doctrine discriminator inheritance