fix to mime/format handling in WMS, test assert