fix isInteger test to be able to notice negative integer values.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>