They were left to test Israel, so the Lord would know if his people would obey the commands he gave their ancestors through Moses.