Period after miscarriage

How long does it take for your period to come after an early miscarriage? Its been 3 weeks so far and no period. How long do I wait before taking a pregnancy test?