Add and refactor tests for pkg/parsers{,*} Upstream-commit: 20467faf132b113a4771fe665e2ce7335de94063 Component: engine