You could manually set exif rotation entries for test images, and then check dimensions after running them through the normalize_image_rotation().