Machine Learning-based Test Quality Improvement for Integrated Circuits