The test was failing with:
machine# Can't locate LWP/UserAgent.pm in @INC (you may need to install the LWP::UserAgent module)...
YWM3WYJWSRTN7W2AU7N2DPQOGYSCYFLAP5ZGKMMB2S55SDOMTS5QC
5QYMALGUFECBH44BDVLFRZR5CQ24UTSEELVMAGDNKY2JAKBZKQ3AC
WQ2VQ7H3CTHM47EOW3F3BB2OUAI7ZXX5FBBAD2DODQOFO5LRM4WAC
T4LLYESZ2HUXSLKZ6GNBLVWUVG7R5IDFHYHYO773QIZ6QTOOXR2AC
LZVO64YG43JD7YMZSCTZNOBS5ROZA4FMPKJW2YOMHX2V5PTGBVWQC
$machine->mustSucceed("su - hydra -c 'perl ${./tests/api-test.pl}' >&2");
$machine->mustSucceed("su - hydra -c 'perl -I ${build.${system}.perlDeps}/lib/perl5/site_perl ${./tests/api-test.pl}' >&2");