final fix to the continuation of processing, writing test now
added tests for resuming parsing of a node