How do you test and validate the reliability of code that has been generated or heavily optimized by AI systems?