testsuite: add tests for circular dependencies