Fix MediaTypeHandler tests to write out the correct type