added test for state filter