Test case for #2

UniqueIndexBy does not handle reindexing on another field that conficts
with the current index.