Added unit test for transforming preferences.
Merge branch 'master' of https://github.com/benedictchen/collective-intelligence