Fix filter registration & add test.