Improve logging of test for panel destruction (PR #12291)
* Reduces the log noise during destruction of SettingsDialogs
* Makes the log easier to follow, objects and constants are now more clearly described.
* Fixes a space in the import statement, this was a typo and is strange style.