Fixed filter tests - introduced function to predicate conversion.