added unit test on merge_padding