promises test with mocha-as-promised