Added a few test for setting editing mode