refactor _test.js