Added basic unit test for L-BFGS.