update mocha test to reflect what actually happens