Fix test=true for pkg state