1030905 more api tests

Add api tests for filtering by date.
Also edited code for pep8 compliance for quality.
This is a string in the middle of the test. I think you really want this to be a comment.