Fix coverity warnings in test_parsecommon.c
Coverity warns incorrectly about a few places in test_parsecommon.c. We'll probably need to refactor the underlying code to solve this one, so it won't be a trivial fix. It should wait for 0.4.2. Because it will clean up some ugliness, it is S31.