testing parts of remove()