added unit tests for converting graph to tdgraph