Added test code to the end of compile.js.