Add support for Robolectric tests.

Robolectric requires compile version between 16-18, hence dropped
version to android-18. Add dependency on junit4 to use annotations
like @RunWith and @Test. This all even seems to work.