Fixed matchesFilter. All tests are passing.