simplified test.js