After USEUNIT you need to specify the name of the unit whose functions you will use in this unit. So, change your code in the following way:
unita
'USEUNIT unitb
sub main
dim param1
dim param2
param1="Test"
param2="Complete"
call unitb.testsub(param1,param2)
end sub
unitb
sub testsub(param1,param2)
Log.Message(param1 & param2)
end sub