Add some tests for filters and fix bug in after_date filter