share tester betweeen output formats
Merge pull request #11 from mbrookes/dry_tests

Dry tests