added delete action and tests