Add test case which catches problems in the old situation
Rename idlist variable