added reduce and reduce right tests