Fixed tests for copying/writing large files to not show the complete file contents in the assertion message.
Minor code cleanup
Fixed default value for remote copy buffer size.