Mocha tests implemented