By demanding that God give them the food that they desired, they tried to find out if he would always do what they requested him to do.