Fix test_Bucket.BucketDataTests to test `needed` attribute.