Add first version of testcase reducer.