Fixing test that would fail if test run between 11pm and midnight