Add oauth2-example and fix some test issues.