add test for normalize -> locals order