1030905 more api tests

Add api tests for filtering by date.
Also edited code for pep8 compliance for quality.
This just repeats the method name. Something like this is more useful because it states why the expected results are expected:

```
"""If date_delta, date_end and date_start are specified, ignore date_start"""
```