Maybe you actually don't have access to the bucket you're trying to lookup/get/create..
Remember: bucket names have to be unique across the entire S3 eco-system, so if you try to access (lookup/get/create) a bucket named 'test' you will have no access to it.