Yes, many times throughout the Bible God tests his servants in various ways. God said, “I the Lord search the heart and test the mind, to give every man according to his ways, according to the fruit of his deeds.” (Jeremiah 17:10). Also in 2 Chronicles 32:31 where it says, “But when envoys were sent by the rulers of Babylon to ask him about the miraculous sign that had occurred in the land, God left him to test him and to know everything that was in his heart.” Again in Psalm 11:5 it says, “The LORD tests the righteous, but his soul hates the wicked and the one who loves violence.” God’s ways are and have always been love and mercy. As the passage from Psalm 11 states, God does not want us to be lovers of violence but lovers of mercy and peace. We should seek to glorify God in everything we do and in how we treat all of his creatures.