Test del in list and -1 index in list