When can I test?

Ana
7 days until AF... 2 days ago I had light pink/light brown mixed with my CM. & for the past 2 days I've had mild cramping and backaches. This definitely is not normal for me. Especially 9 days before a period.