added test for model update

please review it
thanks
Better to s/result/model