updating tests
more tests and use coverage
Merge pull request #23 from ministryofjustice/unit-tests

Unit tests