Lexer unit tests

token, location serialization