The Role of Testing and Optimization in the AI Era