add tests to setup_logging and format_time_left