add tests for edit views