fix save/process pass bug in bfgs
update test cases
rename io io_buf