graph unit tests