Reduce unnecessary waiting in node_spec functional test