1030905 more api tests

Add api tests for filtering by date.
Also edited code for pep8 compliance for quality.
It's interesting to use a response in the future. I'm not sure that comes up much. ;)

I'd also include a response from yesteryesterday so as to make sure it's actually going back one day.