Factor out curl installation
Refactor APT key functional test