Writing editor tests