Added inline test helper, closes #2