Use built-in Number.isInteger if available
Fix test
1.0.3