Tests for the lexer