Fixed unit tests.

Some tests were broken because of recent changes in the handling of images in entries.

One test was broken because of an incorrect assumption (it checked that an interval is between 1 and 60 minutes, when it actually can take a random value between 0 and 60 minutes).