add testcase & instance history insert test