Moved test.js to tools dir to avoid loading test.js twice