add unit test for create redshift table; remove unused functions