More CRUD operations

Add tests for the controller class
Implement editing and deleting tasks