Integrate mocha tests to build process