Forgot to change getUserByIdentity to getUserByIdentityValue method. Fixed tests.