Who writes the tests?

A competing AI.

Ah, it is turtles all the way down.

Yes. But it's no different from the question of how a non-tech person can make sure that whatever their tech person tells them actually makes sense: you hire another tech person to have a look.