They were to be a test for Israel, to find out whether or not the Israelites would obey the commands that the Lord had given their ancestors through Moses.