add valid test for reduceRight()