added tests for check the depency destroy in the relationships when the user is deleted
refactored respond_to do block with respond_with commmand