Mitigating Noise in Quantum Software Testing Using Machine Learning