Properly exclude test packages.