Fix EMeasure writing test