Add tests for the ClassCastException fix for SharedPrefs
Merge pull request #1104 from yDelouis/testClassCastExceptionPref

Add tests for the ClassCastException fix for SharedPrefs