tests: prefs: add empty serializing test

(integrated from trunk branch change 4aab405 by Todd Whiteman <toddw@activestate.com>)