use aws-sdk instead of aws-s3 and fix tests