Add checkNode method in test