Any advice would be greatly appreciated*** UPDATE!!

Hello ladies, okay so I'm a bit confused right now, I did a pregnancy test the day before my period and it was negative, started my period the day after (4 days ago) I did a pregnancy test just now and it came back positive, just wondering how that's possible and am I really pregnant? Has anyone been in the same situation? Pretty worried now! Lol

UPDATE*******

Day 5 of my "period" and I have stopped bleeding and this is my test (top one is yesterday and bottom is today) could I still possibly be miscarrying if my tests are getting darker?