fix some pkg tests