added test for media delete