Fixing up test.js code.