lex_test.go: Export utility funcs

So they can be used in parse.go
Move general test functions to util_test.go