LexerEngine class: First unit tests for the snapshot management.