Test MongoDB reject if we violate the unique constraint of an index