Adaptive Methods for Machine Learning-Based Testing of Integrated Circuits and Boards