Add tests

We would like to get better test coverage, and this is a start.
Merge pull request #591 from alphagov/feature/test-request-uuid

Add tests