Dual tree walk and unittest