Run tests, where possible, on user objective function and (optionally) gradient and hessian
Useful links