And they were to prove Israel by them, to know whether they would hearken unto the commandments of the LORD, which he commanded their fathers by the hand of Moses.
This verse means that God used these events to test Israel and see if they would listen to His rules given through Moses.