add delete tail and some tests