Add oauth2 tests

Some initial tests for the oauth2 lib