Graph: testing graph class