fixed tests after adding mocha-as-promised