mv src/renderer/ src/test/
add compiler.js and update test code