fixed failing mocha test