Remove group when the elements don't match the filter condition anymore
OCD
Added test
Merge pull request #2 from masylum/master

Remove group when the elements don't match the filter condition anymore