Fixed Chain Filter and updated tests for chain filter