Migration to Mocha testing library