added unit tests for graph utils