I fixed the tests, and the basic functionallity of detecting pipelines works, but detecting nested cmdgroups is not yet implemented