simplify test.js