Mocha testing implemented