add tests on finding with discriminator and selection fields as object. #1820