Fix syntax error, add reduceRight tests
Resolve conflict