[refactoring] Introduced package for "resolution" code
[test] Cycle, unique snapshot, duplicated nodes, root node is resolved