Bug 1014481 - Updated integration and unit test for build/preferences.js