The doctor may also insert a small short plug into the ear canal to change the air pressure in the ear canal and measure how well the middle ear functions. This test is called tympanometry.