Add tests.

Covered:
- global config
- job config
- file munging (including data from slave)

Not covered:
- TestRail client code - mostly boilerplate conversions to/from json/pojos