1030905 more api tests

Add api tests for filtering by date.
Also edited code for pep8 compliance for quality.
This comment is just like the method name. You probably want to say something more interesting like:

```
"""If date_delta, date_end and date_start are all specified, ignore date_start"""
```