testing learning algorithms