testing reduce on vectors