Tests: Test opening and saving preferences dialog
Tests: Added tests for tray