--- a/t/106.photos.t
+++ b/t/106.photos.t
@@ -47,7 +47,8 @@
 $photos->[7] = {path => 'IMG_0008.JPG', exif => {ExposureTime => '1/4'}};
 $photos->[8] = {path => 'IMG_0009.JPG', exif => {ExposureTime => '2'}};
 
-is ((join ':', @{$photos->Speeds}), '2:1/2:1/4');
+my $speeds = $photos->Speeds;
+is ((join ':', @{$speeds}), '2:1/2:1/4');
 ok ($photos->Bracketed == 1);
 ok ($photos->Layered == 0);