Correct logic in package prefix test