added test for model update

please review it
thanks
As you are calling a factory, better to wrap in try/except block. Same pattern for other cli factories calls.