Refactor inline markup tests