Fixing failing tests due to KeyError in MockedSettings dict