fix uploading to s3 on tests