Some bug fixes and tests for my map reduce classes.