Put date-filter tests in their own class

Also add tests for error cases
Remove debug statement