TST+BF: Fix bug in Filter.{get,set}DatePattern and improve tests