test(timepicker): fix failing test between midnight and 1am (fixes #435)