Add tests for filter chain.