ENH: Avoid RuntimeWarning when hessian unused
TST: Remove unnecessary test.
Merge pull request #1543 from jseabold/tst-fix-warning

TST: Suppress RuntimeWarning for L-BFGS-B