Convert test and utils to commonjs