Fix broken tests for Parser.

Resolves build breakage in:
https://travis-ci.org/smkell/weyland/builds/23699364