add foldr/foldr1 tests
remove unnecessary code