Improved self-test for MarkLogic 7