Testing Angular promises with mocha