Add delete link tests, and refactor with delete link partials