update test method.js