Add unit test for case that the image exists and is not modified.