As mentioned, for download just grab a file from somewhere else. Do it with lynx, or wget.
For an upload speedtest, just host a file on apache/lighttpd/whatever. Have someone grab it with a faster connection, or have multiple people grab copies at once.