test.js cleanup