add tests for task and task status storage
simplify interface + more tests