with mapreduce, the value is wrapped in a value field, added a method called flatten_value_field to take all fields inside value and make them apart of the base document, modified tests to reflect this change