how early can you take a Pregnancy test and it be accurate and does having sex effect the result of the test