Several more unit tests on Preferences