Replaced respond_with_content_type with assert.