GetOrDefault function

Makes it easier for tests to extend the TestContext using extension
methods, that cannot depend on an explicit setup being called previously.