Add an input transformation implementation and tests for the reducer