1030905 more api tests

Add api tests for filtering by date.
Also edited code for pep8 compliance for quality.
I think I commented on this previously. I'm curious why you have a "tomorrow" response. That should never happen, so I'm on the fence about why it should have an expected behavior.