Support IdentityType base type when invoking lookupIdentityById.
Updated testLookupById.