Add more testcases for the parsing module.
Create testcases for the depgraph's builder.
Fix a bug inside the depgraph class.