Fix bug in patch many with filter, add new test