updating unit tests to Mocha