Use Config nesting in `SapphireTest::useTestTheme()`

Using the Config nesting functionality to restore variables
Merge pull request #3094 from dhensby/patch-3

Use Config nesting in `SapphireTest::useTestTheme()`