Adds stubs to some methods on PreferencesPanel for testing. Adds more tests to PreferencesPanelTest file.
Merge branch 'origin/dev'