refactor and add spec on import_task
refactor compoliance_check_task and specs