add first version of test case reducer