Mocha tests working