Add test helpers
Merge pull request #224 from akkie/master

Add test helpers