Add doc and docx to ALLOWED_MIMETYPES
Add tests for doc/docx documents and create_metadata function