This test is usually performed if a chest X-ray shows that you have fluid in the space between the pleurae, a condition called pleural effusion. It’s also done if you show symptoms of certain infections, such as pneumonia, or to see if there’s air in the pleural space.