addding tests for should_log_task