Check if mkd_doc_*() functions return a nullptr
Adding test code