eco lexer tests and bug fixes