Properly reconfigure the user prefs in test windows.

This is a fix for #6575.
Merge pull request #6603 from adobe/dangoor/6575-prefman-test

Properly reconfigure the user prefs in test windows.