First proof-of-concept test.

Tests are being modeled after github://google/go-github/
Including a few tests and associated refactorings.