Commented out writes to stderr; used numpy testing routines