add nonlinear model tests