minor cleanups to Traversal/MapReduce
started adding map reduce test cases