added unit test for testing graph stuff