Fix test case for date issue