Added a formatPreferences to the test project.