Add tests
Fix field not being set when using output from a checkbox

* When using a checkbox, the return value is '0' or '1'
Merge pull request #2 from Calyhre/fix_using_checkbox

Fix field not being set when using output from a checkbox