Refactor NewVisitorTest class with check_for_item_in_task_list method