testing with bluebird-promises