Fixing typo.

"treees" is assigned and never called, should be "trees".
Subsequently, this assignment is recalculated at a later
stage, removing that.
Fixing whitespace inconsistencies in search function.
Fixing whitespace in tests and improving tests.