Finishes MarkdownQuery and tests