migrate from jasmine to mocha tests 100% coverage