When to test??

For the past week me and my SO have been having unprotected sex and would like to know when is the earliest I can start testing??