Put new_task functions into separate file
add deps for unittest