Add is_whitespace and is_newline to the Lexer class, as well as the corresponding tests.