add unit test for normalize