Added tests for POST /tasks route.