Fix unit tests when there is more than one tag within the test image