added measurments, fixed one insert bug in case 3, added some test
merge