DocCode: updated "set entityState of detached entity should throw" test related to defect #2581