auth: copy the connection for use in test