added specs for the map/reduce matchers with commonJS and made a few variables names make more sense.