better types check in set_bucket_props
tests for buckets routines