[Node] write some tests