fixing test.js
scripted update of code from master at 4aa5b43 fixing test.js