Test: Save data using shared preferences