discriminator: add test cases when checking fields are inclusive. #1820