test.api: use Hydra perl dependencies to run `api-test.pl`

The test was failing with:

machine# Can't locate LWP/UserAgent.pm in @INC (you may need to install the LWP::UserAgent module)...

Created by  Antoine Eiche  on June 21, 2019
YWM3WYJWSRTN7W2AU7N2DPQOGYSCYFLAP5ZGKMMB2S55SDOMTS5QC
Change contents