delete-modal: test deleting pseudo-directory

This revealed a bug in the callback: unlike deleteObject, the
deleteDirectory method does not return a defered coming from $http.
This means that the defered doesn't have the success short-cut method,
it only has the normal then method.