Fixed error during initialization of SharedPreferenceTest