Changed delete resource to finish properly
Fixed an error in delete resource and added some more time on the timer in the tests