fix tests failures, which occurs short before midnight. Fixes #2.