Fix APT tests