fix check for 0 || non-zero
add test
Merge pull request #20 from timaschew/patch-1

fix check for 0 || non-zero