hamiltonian test class added