Ticket 21206: Verify the test label is a package before running discovery