Added tests for trees and tables