Test Set Optimization by Machine Learning Algorithms