Test package detection