fix gallery tests