Tests for ImageService and MetadataService