try to make mocha test more reliable