Improve oauth2 test suite & add more tests