fixes #5235: it's impossible to create filters with invaid searches

Fair enough, maybe ```after``` would be more readable. Anyway this is up to discussion, I'll merge this for the moment and search for a way to discuss test standards :+1: