polish insert, add random tests