Update lexer tests to not have data races