test: test cases for walker.get_dependencies()
fixes reference bugs and prevent duplication