Converted testing framework to Mocha