Add tests to enforce id/label extraction consistency in ElementHelper