fix dup and deep_copy tests