When to take pregnancy test?

Adriana
Last Friday the 13th was my high ovulation day so me and my husband had sex. AF comes the 27th. These last couple of days my right side has been hurting and this morning there was blood in my urine but went away by the next time I urinated.