Fixed errors in partial column reduce functions.
Implemented partial reduce unit tests.