Adds a new constructor for testing to PreferencesPanel. Adds PreferencesPanel tests.
Merge branch 'origin/dev'