Move TestTree tests back int parse_test.go

Ooops! These tests shouldn't have been moved.
parse_test.go: Add checkTokens()
Refactor TestTreeBackup() to use checkTokens()
parse.go: Add Tree.clear()