Create test harness for toUri/fromUri tests

We can't use parametrized robolectric tests because of the issue:
https://github.com/robolectric/robolectric/issues/871