Smart techniques for flying-probe testing