use new optim_erkls in test