Add integration test for merge duplicate image code.
Nothing fancy about the test, just the basic functionality without hard
tests (otoh the merge duplicate images code is pretty straightforward).
Note: the duplicate category merging code could also need some tests...