Update unit tests to use unique pref
Add docs to get_pref and set_pref