Small code refactoring in RedshiftBulkInsert.js and tests for it