examples: test-uri: improve uri argument handling and accept file names