Testing routines for regression algorithms