Added test cases and wired up robolectric

This will add robolectric and remove/update the existing test cases to use the new unit testing framework.