port unit tests from mocha to jasmine