fix media type test assumption (see #295)