AI and Machine Learning to Optimize Software Testing