code for delete spec and check tests