Fixed failing gallery tests