add licence text
refactor tests
add watcher to rebuild tests
add test build source map generation