Close Buckets in tests. Thanks @kisielk!