Fixed test for 'cm' or 'in' -- now pattern is drawn correctly with unit read from measurement file, not radio button from web page.