Added tests for circular dependencies of singletons