Clean up GraphUtilities internal state in test teardown