A test has been developed that could help diagnose bacterial infections including meningitis in minutes, but it could take several years before a cheap testing device is available to developing countries, scientists said on Wednesday.