This test will fail when run between 23:00 and 24:00. Not sure whether we can prevent this problem in all cases, but we for sure can minimize the window.