Added more Oauth integration tests. Updated some unit tests for new features.

561u, 45i