Added simple is_hamiltonian(graph)
Added tests for is_hamiltonian and "improved" test function