Improve parser test

Add assertion to WikiParserTest and MarkdownParserTest.

Please check and merge.