core/demo.js: add test for negative numbers