Should I test and when?

I missed two pills within a few days of each other and didn't use a backup method. Now, 5 days before af is due, I'm having some cramps and a migraine which was my first symptom with a previous pregnancy/miscarriage. Should I worry about testing? If I do test then when should I do it?