test update for bfgs and clean up