es6-promises for testing