edit with patch, test for patch