Wrote some tests, but still have some bugs to fix before testing works.
Finished tests and debugging oauth.go. Some corrections required.