Add test for CompareFilter