Update test.js

update reporting code.