add Test for Graph genreation