writeup of test.js