added tests for edit_view