small changes to sortbydate test case