Fixed media deletion error

As defined together, the media deletion will return an error. The test has been updated to meet this requirement