tests: Increase test coverage to ~75%.

The stuff that's easy to test has mostly been tested now, things like if
the correct URL is getting generated, if the types behave as expected
etc.

The trick now is either getting a PuppetDB with sample data to run on
Travis or mocking everything else so we can actually test the functions
on v2.API and v3.API.