Implemented delete task, fixed some tests, which broke after mocha upd.