Add test to missing cleaning of media type in parsing