tests: check for circular dependency in global variable initializers