It was badly handled but the authorities were put in a very difficult position by the fact that she came from nowhere to run the best time in the world this year about 3 weeks before the Worlds a 7 second improvement on her personal best in a year.
Then she bettered that time in the championships. They did not have cause to do it earlier, and it will take time to conduct, so the rumours will fly.
Her win seemed a complete anti-climax and that will be very sad if she passes the test.
She didn't even do a victory lap:
'Yet while Jepkosgei and Meadows - a brilliant third - went off for laps of honour, Semenya was ushered away by officials, straight past the hordes of waiting journalists.' - BBC