Think he did, and I followed him before I talked to Mirand a. Let me recreate.
1: take test one
2: teleport back (it goes wrong!)
3: get teleporter from skelly
4: jack takes first one.
5: teleport again.
6: hi jack,
7: get pills from jack’s cabinet
But I don’t know why I got them.
That's all expected behavior. You got them because you're a sneaky jerk who swipes stuff from people's cabinets :)