fixed syntax error in tests.js