Added error handling for update Task
Tests for exceptions when updating an entity (entity manager)