the experimental branch has a better version of this test in libapt,