added mocha tests semi.js and wrap-regex.js