test inherit and look for Discriminator