fix pkg tests