Probably should write this to check to_media_type instead since it is the primary method called. Can review the other examples for xhtml. Also, see comment below on fixture for html.