Add and reorganize Graph tests.