you remind me alot of myself when i was a young kid. yea man, women will test you in one way or another. as far as you guys trying to be friends, that never works out unless you are both on the same page. there is good stress (intense fatuation) and bad stress. but either way, they are both stress. i think you might be a little too emotionally attached to the situation, ive been there. NOT HER, but the situation. girls just wanna have fun bro. im sure people have told you this but there are alot of really cool girls out there. you just have to have a positive mindset. seriously. every thought has its own frequency range, like frequencies attract. so basiclly if you think bad thoughts or are worried about bad things happening, that is what you are subconciously seeking out.
now, after you guys broke up you could have had things to your advantage if you had handled it real nonchalant. use words like 'move on' 'the best thing for the both of us.' even if you love her and it hurts more than anything. that makes it so you are in control of the situation. and if you can control a situation to where you are pacing things right and being the moderator, the other one will usually want more or realize how cool you are and want to be friends.
build up your own self dude, lift weights, swim, go for a hike. hang around with like minded individuals who like to have a good time. because i can tell you right now, its not worth it. even if it is right now. even if you love her. nothing like is worth the stars and the moon and most of all, your well being. your balance, your chi and good karma. oh yeah and try not to hate the game of anyone else, thats life man.
when i was in the same situation/high school relationship (2years) i didnt realize how absolutely unhealthy it was and damaging to my spiritual well being. you have a warm light inside of you that is waiting to be turned on. maybe by a friend, aqauntainence, etc. but just dont forget to take pride in yourself, you are the key to your heart YOU and no one else. a

well that was pretty long but i hope i helped you out a little bit!

LATE