Do not assume, that all difficulties and the problems of your life are trials of your righteousness.
They could be chastisement for your sins.
Nothing is sadder, than a self righteous person.
When the Lord is chastising him for his sin, he will always assume, he is being tried for his righteousness.
Always, when great problems arise, ask God first, If you have sinned or not?
Remember, the chastisement of God will continue until you repent.
All who God loves, He chastens.