test(parser_spec): fix analyzer warnings

Closes #1430