add testing and a few tests on graph module