Testing basic graph implementation