Adding test_failure to x3 test framework

The new test_failure function ensures that the first iterator argument
remains at the start position when parsing fails.
Merge pull request #31 from vtnerd/improvement/test-parse-failure

Improvement/test parse failure