(PUP-4336) Add unit tests for structured logging and lexer issues
This commit adds unit tests to verify that log entries create with
or without issue code behaves as expected with respect to backtrace
and positional information.
The commit also includes unit tests that verifies that all new
lexer issues are detected and reported correctly.