fix gallery test