revert strcpy, add regression test