improve tree compiler contents test