Added base hamiltonian test