Refactor TestTreePeek()

Use reflection to write a more robust test.
parse.go: Protect peek from nil tree.lex

Add a check to prevent a panic.
Rename TestTreePeek() tests