Hi,
Proxies need end user programs - like browsers, mail programs, etc to be aware of them.
"speedtest-cli" is a simple tool, at least the one you can install on pfSense, isn't aware of proxies so it can't get out.
I advise you to carefully select two meaningful words like speedtest-cli proxy, feed them into your favourite web search engine, and then do what has been said here.