in-memory reducer (test)