Adds unit tests for graphs