ABC:Deuteronomy 13

Verse 3
The EvilBible claims a contradiction exists here, and makes the following comments.

God knows the hearts of men

Acts 1:24 And they prayed, and said, Thou, Lord, which knowest the hearts of all men, shew whether of these two thou hast chosen,

Psalms 139:2-3 Thou knowest my downsitting and mine uprising, thou understandest my thought afar off. Thou compassest my path and my lying down, and art acquainted with all my ways.

God tries men to find out what is in their heart (sic)

Deuteronomy 13:3 Thou shalt not hearken unto the words of that prophet, or that dreamer of dreams: for the Lord your God proveth you, to know whether ye love the Lord your God with all your heart and with all your soul.

Deuteronomy 8:2 And thou shalt remember all the way which the Lord thy God led thee these forty years in the wilderness, to humble thee, and to prove thee, to know what was in thine heart, whether thou wouldest keep his commandments, or no.

Genesis 22:12 And he said, Lay not thine hand upon the lad, neither do thou any thing unto him: for now I know that thou fearest God, seeing thou hast not withheld thy son, thine only son from me.

Why the critic thinks there is a contradiction here I'm not sure. Yes, God knows the hearts of men, but this is because God tests them to find out what's in their hearts. They are compatible, not contradictory concepts. In fact, the quoted Psalms 139:2-3 even specifically indicates this by explaining that God knows our thoughts because He examines our paths while acquainting Himself with our ways.