Add a test for COPY TO file