Various cleaning actions done to setPredictor/testPredictor interface.