t6: add tests for edit form