add tests for #tail_insert