Add tests for oauth handlers.