TST add tests for graph crf