implements a integration test for the filter updating the state