tests: handle missing cairo for the last change