Write regression test for applying filters using @ensure and apply a patch.