Fix segfault in tests with lexer
There's still a bug in parsing commands