When should I take a test ?

** update I took a $1 dollar general test as soon as I woke up and it was negative idk what to do now..**

I am currently 5 days late for my period I’ve had pelvic pain one day but other then that I haven’t. My back has been hurting for about 4 days now on and off but today it’s hurting a lot . I kinda have a lack of appetite. I’ve been nauseous on and off but not throwing up. I’ve been kind of moody lately to. When is a good time to take a test. And the pregnancy is wanted so I’m so hoping I’m pregnant just don’t know when the best time is to take a test is all.