Fix unit test. Nashorn returns a double after incrementing, not an integer
Merge pull request #212 from melix/fix-nashorn-test

Fix unit test: Nashorn returns a double after incrementing, not an integer