Test file with reduce implementation