tests/platforms: installing curl before running it

The Ubuntu cloud image already includes curl, but when running in
Parallels or VirtualBox, we need to install it.