Feature/unit test oauthmodel

Added unit tests for the OAuthModel