Add a test to validate it does not remove more legends than needed
Add a test to validate it does not remove more legends than needed

CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb