Adding test for handling groups
extracting should_log_task