Move tests out from lib/tree.js to test/tree.js
Move tests out from lib/tokens.js to test/tokens.js