Fix Preferences for testing builds.
Add few assertions to DBus methods.