Compile to commonjs modules and test the output.