Periods after breast feeding

Pushpa
My baby is 5 months now, she has been breast fed and ebf.  I started bleeding heavily yesterday, I'm guessing that my periods are back even tho I hav been told usually happens a year later whilst breast feeding.  I have Been advised  to do a pregnancy test, because they said sometimes it could b a miscarriage which could be mistaken for a period. Anyone else experienced this and told the same ?