Again, the hormones that are released in early pregnancy can give a positive pregnancy test. These hormones can stay in the blood for some time after the pregnancy has failed and will give a positive pregnancy test as these hormones are released into the urine which then gives a positive pregnancy test. This can occur for up to 3 weeks following any type of miscarriage.