<human>: Could you distill the essence of the text into 1-3 sentences?

So Tom and I have been together for a while, but I still sometimes become suspicious. Part of it is because of my history of being cheated on, but part of it is because he does weird things like this.

So one time around a year into our relationship, I couldn't resist snooping his phone (not good, I know). I found some flirty and somewhat inappropriate messages between him and some girl. He assured me that I was overreacting and misreading the messages. Somehow I forgave him and I remember very little about the event now. 

After this and a few other peculiar situations, he decided to give me his FB password and said that I can check whenever I want to see that he is being trustworthy. I would never have asked for his password and I know that the snooping I did one time was wrong and hurtful for both of us. But he gave me his password so I went on his FB, being curious. I scrolled down to try and find a few conversations that I knew he had had... for example, one with my ex boyfriend. And one with the girl who was with my ex after the ex and I broke up. These were gone. There were many other messages that were also gone. I mentioned to him that it was weird that he would give me his password yet delete his messages and he got mad at me for logging in. I asked why he gave me his password if he didn't want me to log in, and he said that he was basically testing me. I failed the test, apparently not showing enough trust.

I am extremely confused. Why would he give me his password if he was just going to delete things? Does the fact that he deleted some things mean that he is hiding something? I'm beginning to think that he is being a bit scarily manipulative for this and other reasons and I'm not sure if it's all in my head. Any advice is welcome. Please be respectful.
<bot>: My boyfriend gave me his fb password then deleted stuff and got very mad at me for logging in. His trend of oddly manipulative actions has me extremely confused, and I don't know what's going on.