unit testing: reduction