Fix media test to check for dupes