discriminator unit test  for native query