Test and fix TreeCube field extraction