tests: prefs: add test case for root preference cloning

(integrated from master branch change 5b674fd by Todd Whiteman <toddw@activestate.com>)