Fixes AB tests being duplicated when inited multiple times
Restrict gallery test  to pages which have them only
Merge pull request #1311 from guardian/ab-test-fixes

Ab test fixes