adding another test case
added workaround for cases where a singleton descends directly from the root