Add unit test on DAGraph class