Fix media gallery test.