Update tests/general/test_filter.py to test limit functionality.

Also make our datetime arithmetic a little more concise.