Bug 950539 - Fix gallery tests