fix uri testing : empty -> null
TODO : add test for trailing / in path

such path may indicate a folder, but I think it should just be ignored
-> we need to see how does URI and/or other Path implementations deal with it