Fix lexer errors in parser tests

Reuse "new Lexer(program)" - if the lexer fails just sometimes (depending on random factors), it could happen that lexing didn't succeed in the second case.