Bad condition in copy file test