shared preference testing