fix one of LD mocha tests to work with promises