Added unit test for transforming preferences.