added some test specs and edit form