added graph tests and missing deletegraph method