The catalase test detects the presence of the catalase enzyme in bacteria. Catalase breaks down toxic hydrogen peroxide into oxygen and water. If bubbles form when hydrogen peroxide is added to a bacterial sample, it indicates the presence of catalase and a positive result. The test is used to identify certain bacteria like staphylococci that produce catalase.