finished test for optimizer rule remove-unnecessary-filters