add logs to task's function checks
add tests for invalid task's functions and params