If you want to test your internet connection, but you only have a terminal (via ssh) you can use the following commands
sudo apt-get install speedtest-cli
speedtest-cli
If you want to see only the servers from Romania, for example:
speedtest-cli --list | grep Romania
To use a certain server use:
speedtest-cli --server [server id]
where server id is a number from the list of servers