By all means, let your agents write the tests. Just make sure that a human expert has set the standard for passing them.