These served as a test for Israel, to know whether they would obey the commandments the Lord had enjoined on their ancestors through Moses.