Use symbolic constants instead of magic file descriptors.
Adding tstree files.
Adding tstree tests.