Adding test case for queries based on the IdentityType.