failing filterBy test with delete

I have created a failing test for #4620 that will cause the error to happen.