add more tests for python LBFGS
add test for optim compatibility