OAuth2.0 functions added. Test function added