Tests for update/upsert with $push/$each.

Test adapted by mcbain's test from #1492.