I went through this exact same thing last month (I took a test, got a pos and then within hours was bleeding). I was about 4 and a bit weeks pregnant. I continued to have pregnancy symptoms (nausea especially) and positive test results up until two weeks after the miscarriage.
I'm sorry for your loss, I know it's early but it still hurts xxx