Added testing of the shared preferences