markupparser tests

Gave markupparser a real test suite.