connect method now returns AuthResult.
Check AuthResult in unit test.