Verified Answer :

to see of they still believed in their God or they would give up and stop believing

Kind of the same reason why the devil wanted they wanted test really how strong their faith in God really was or if they were bluffing