Fix + test for #80

Drop the map_reduce result collection before inserting the results into
it.
Merge pull request #82 from baruchoxman/master

Fix + test for #80