add test for empty bucket handling