unit tests: fix uritests

Adapt unit tests for #409 (hint: these tests are useful).