Fix tasks-lib tests

- do not use type in tasks lib tests