Transfering unit testing framework from Jasmine to Mocha