PER-107: replaced non-trivial usages of WikiaBaseTest::mockGlobalFunction