Fixed hamiltonian and integrator tests