added tests for uri
fixed ftp_base
fixed ftp
added require tmpdir