tests for commonjs compilation and validations.