Tests for editing