1030905 more api tests

Add api tests for filtering by date.
Also edited code for pep8 compliance for quality.
This is a good docstring, but if you added `_no_date_delta` to the method name, you could skip this.