Update to Robolectric 2.4

This enable use to turn some test on which were skipped because of
missing features in previous versions of Robolectric.
Merge pull request #1225 from WonderCsabo/1222_Robolectric2.4

Update to Robolectric 2.4