Assert that HTML documents must be sent as text/html and XML as application/xml when serialized by the send() method
Rework encoding part in send-document test, test three documents with various encodings/validity/content-type combinations