Am I a bad friend?

I eat with two girls who became best friends while I became the third wheel( cause they have many classes together and I don't have any) and being with them made me feel so excluded and un apart of the group. I ate with some other friends a couple times because I didn't want to be there. A girl who used to sit with us stopped sitting with us and these girls started talking shit about her. I didn't want that to happen to me so I told these girls that I have a test and I'm studying with my other friends at lunch. I wanted to just drift away but my two friends asked my other friends why I'm not sitting with them and they told them that I said i had a project to do. I'm not sure about anything but I think my other friends now think of me as a liar. I have no proof. One of the girls asked to sit with me on Monday I said yes. The other girl looked pissed. Based on social media I think the pissed girl no longer likes me. I wanted a break from that group but didn't want to create drama or completely trash that friendship. I feel like a terrible friend.