Add a unittest for #19819 (correct source for filter errors)