add test for Foldable#to