Rework TestTaskWorkerDB
improve tests for determine package, add tests for import function