add tests for integers with default and 0 value

@czue can't reproduce http://manage.dimagi.com/default.asp?142358