made random and grid search doctests non critical for numerical reasons