insert function done
update test for insert function