Added test suite for graph functions.