Update test.js

Addition of toFixed