make tests work for lbfgs fix