As the swine flu spreads, many doctors and hospitals are turning to rapid tests that can determine within minutes whether an anxious patient has the flu. Sales of such tests are soaring. But the tests have a severe limitation: They may fail more than half the time to detect swine flu infections, according to newly published studies and to experts in medical testing.