testrun works. fix bug in nonlinear integrator