automated linking to test foldr tree