Added some tests to trapezoidal integrator.