Tests for graph init method