implementing test for insert updatetable