Fixed AssertionError in failing Mocha test.