TST: Added test for inverted limit with autodatelocator
STY/TST: pep8 fixes for test_dates