Added support for Robolectric and modified tests to suit it

it is no longer an android project. it is a java project.