unit-tests for missing discriminator