Fix truncated parser testing
Merge pull request #5 from benfitzpatrick/improve-tests

Fix truncated parser testing