Preferences static class + test.