Positive after miscarriage?

I got miscarriage on 21 Dec. One week bleeding. After 1 week, I took a test which is last week and its negative. And i still havent get my period yet. So i took a test seem i got a faint line. But i got somehow a brownish kind spotting on my pad while im about to take a test. At first i thought my period is coming but then i got positive.