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
It should be possible to get model class from entity Uri
Better error message
Assert stuff in tests
EntityUri should not keep reference to ModelUri