Added unit tests.
End parsing if the next character is EOF.
Remove height, as the tree should not be balanced.