Add tests for the ClassCastException fix for SharedPrefs

Add tests for the ClassCastException fix for SharedPrefs as suggested by @WonderCsabo [there](https://github.com/excilys/androidannotations/pull/861#issuecomment-53151167).