[Node] Fork function and test