Add tests for StyledEditor class