1030905 more api tests

Add api tests for filtering by date.
Also edited code for pep8 compliance for quality.
Since this testdata is being used for testing date filters, it's better to have the date at the beginning of the line so it's easier to eyeball the important part.