Fixed persistence tests

Don't use buckets after closing them!