created test and functionality for resourse delete