Move tests out from lib/basis.js to test/basis.js
Move tests out from lib/template.js to test/template.js