Yikes, can I relate. Michelle gives solid great advice, even go read my thread on my issue she gave advice that would help you as well *hugs* I feel the same too, and it gets to the point it affects your health and well being and you need to stop. Being depressed is a sign for you. If you don't mind me asking what test did you pass?
Does he acknowledge ever he has hurt you? In your post you said you now feel blessed he is gone, maybe take those words to your deepest part of your head and heart and keep repeating them, so it takes hold. I like mantras to get past sorrow and pain, so you stop dwelling negatively and hurting yourself.
“The one you love and the one who loves you are never, ever the same person.”