Add bucket-props tests
Fix a bug in bucket-props