Added tests for COPY queries

Trying to find the cause of #28.