Use MagicMock to mock iterable image object in volume tests