added graph unit test