Update warning_filter for a new patch

I just added tests and a small bugfix to warning_filter.