add reducer and test data