Should I get a test now or later?

My period is late by 9 days, it was supposed to come on the 3rd-4th of this month. But the thing is I had unprotected sex with the same guy I've been with for years on the 8th of this month and aswell as last month on July 1st but my period still came but instead of lasting what it usually does which is about 4-5 days, it lasted half of that. Usually, three days before I'm about to start my period I get really bad cramps that last the whole time I'm on my period but I haven't gotten those cramps. Sometimes I'll think I'm starting to get cramps but they last very little, my whole body has been sorta sore and I've been very tired lately and out of nowhere I start gagging and wanting to throw up but I don't. My mom thinks it might be the way I've been eating but I've been eating the same way as always. Should I get a test done now or wait a few more days?