Removed unused code
Added coverage for filter chain