fixed a syntax error to test.js