updated graph tests to better clean up after themselves