Hcg trigger shot question!

If you get a trigger shot to induce ovulation with timed intercourse, how long would you wait to test for a pregnancy test and how long does it take for it to get out of your system? Should I test 2 or 3 weeks after?