Move Oauth2 Test into lib directory