Fix inserting to destinations table in tasks_lib

- only in tests
- type can't be null in table destinations
- set default 'host' in tests
Merge pull request #325 from stavamichal/fix_destination_type_inserting_in_tasks_lib

Fix inserting to destinations table in tasks_lib