We typically test forms in two ways: 

- Filling in each field and checking that they are saved to the database (see ~lines 19-59).
- Viewing the form to ensure that existing records' attributes are correctly displayed ( see ~lines 61-105).

Our convention has been to divide form testing into these separate steps so that testing viewing the form is not dependent on the outcome of saving the form. 

Coincidentally, in this case, we can tell that the form actually displays the correct values from the database, despite the fact that saving the form fails (when everything is uncommented). This allows us to better isolate problems.