Writing and adding mocha tests