Create some simple tests for path api/v2/hosts

Implement a few tests which check whether it's possible to GET the path, and add
some partially written tests for doing other things like POSTing and messing
with sub-paths of api/v2/hosts.

Ensure that the new doctests written as part of this commit are included with
the rest of the doctests.