add tools/build
update test_phantom for mocha