Remove unused code from test.js