remove homegrown `map` function from test.js
remove debugging stuff