using mocha new promised based syntax