I have never tried it regards testing for nosema,(i have only tested dead one's) but have had queens poo just prior to inseminating them.
But this post from Ruary suggests this...............
No, never tested queens but apparently one method of so doing (without killing her) is to allow the queen to wander on a glass sheet and when she defecates (clear drop of liquid) to test that.
Ruary