Added tests for edit and delete messages