God will test you because He wants you to mature. He wants you to develop a walk with Him that is not based on your fluctuating emotions, but on your commitment to Him as you learn to walk by faith.