adding unit tests for tree reader