Convert ids in tests.