make gallery test deterministic