Generic URI factory tests. Relates to #2.