Improved code coverage of Filter class. Minor CS issues fixed.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT

Code coverage of Filter: 100% (80.36% before this PR)