Move test for unnecessary memmove to memmove_wd()