1030905 more api tests

Add api tests for filtering by date.
Also edited code for pep8 compliance for quality.
Better to change `date_end` to 2014-07-03 so that it's in the middle of your data set and you have one day on either end that shouldn't show up.