update sinon dep
Adding unit tests for Lexer. Removed some unused code.