simpler test writer
Merge pull request #15 from mikedewar/master

simpler test writer