They were for atesting Israel, to find out if they would obey the commandments of the Lord, which He had commanded their fathers through Moses.