Updated testing function for S3 bucket creation