Best time to test

Who has tested before 12dpo and got negative and tested after like when their period was supposed to come and still got a positive?