Make the delete expired tasks test of the test command more stable.

For some reason when you run tests around midnight this test can be failed.
I think this is related to time shift. It is not so big issue for now
but I will make a point for future.