test sharedpreferences