Remove trailing whitespace in media tests