refactor, extract xml snippets from processor_test.rb
`ContextError` if loop expression does not evaluate to an enumerable.

Closes #3.