improve testcase for 2874
improve update orm