Some more information about setting up integration tests

...and some fixes to a few tests.

The thumbnail width thing looks a bit odd, but it's trying to take care of the two (or are there three?) possible sizes of thumbnails of portrait images (depending on the original width). It is a bit odd.