Added lookupIdentityById method to the IdentityManager interface. Updated test cases.