Failing test for the issue #3994.

I have a problem similar to the issue #3994, but I'm using filterBy and not mapBy.

The error message is:
`TypeError: 'undefined' is not an object (evaluating 'nextArrayOperation.type')`

I created a failing test showing the problem.