Fix concurrency issue with multiple words scanners.
Making tests more change tolerant and extendable.
Basic lexer tests.