added node state return to unit tests