Added test for invalid edit form