Added test for ExistsFilter and removed flake8 violations
Added test for TypeFilter