mocks with promises for $cordovaDialogs