add test for the get uri method, fix #5