add regression test for eliminate_ids; eliminate_ids has bugs on side effect