Added test cases to check the rendering of an `Uri` with empty query string and/or fragment