added sample tests to reproduce the issue
correctly adding the child nodes into the queue inside their respective parents
updated the failing test and finalized the queue refactoring