Add tests for TEXTEditor