When should I take a test

I’m 4DPO and I have cramps, I’m tired all day, loss of appetite. Also this morning I wiped and there was 2 tiny spots of blood. Had unprotected sex two weeks ago and 1 week ago. I’m also having very weird vivid dreams. My period is due in 9 days.