Feature/tree builder spec