fix failing Pig test
improve source extraction from documents with missing nodes