Move getTextRecursive() to parser and remove parsing test script