add tests around markdown editor widget