As salam,
I was wondering if Allah (swt) tests us through our dreams. Because I have had some dreams where I would be in the middle of it and then feel my self leave as if I was yanked out of it. I'd awake conscious of where I was, as if my mind was gone and simply flew back into me.
Once I dreamt that I met an african man (i also am african, somali, so i don't think the dream was racial). We were both in what i think was a masjid and he kept saying to me "I am Mohammed". I tried to ask him questions but he just repeated the phrases. Finally, I remembered the descriptions of the prophet and how he was Arab, had a beard, and was overall different from this man. Then I told him I don't think he is the prophet, and I was yanked from my dream. A day or two ago, I dreamt of people trying to make me eat haram food (i think pig) and i told them i couldn't because i'm muslim. Then i was yanked from my dream as if i was not asleep but somewhere else. I've had s dream where i met the prophet as a boy in a bizarre as he was travelling with his uncle's caravan selling wares (I don't know if this really happened) and I told him of all the great things he'd do. I even had dreams of judgment, waking up to see the sky crimson red and of falling into the Earth as it opened, desperately trying to claw my way up the cliff before the earth sealed up again.
I've had so many dreams i can't describe that have only made sense to me now that i have followed islam, and many i don't even know what they mean yet though i try to guess. I don't think a lot of them have too much meaning, maybe just me with Islam on my mind. I tell you guys this even though its kind of private just in case they are good dreams which then would be better to tell, or bad dreams that require me to change myself to be a better muslim. Allah (swt) knows best.