Rest of test from test.js; remove console.log