added delete and tests