unit tested oauth class