Add SharedPreferencesPlugin tests