added unit testing to prevent loss of fields in the new form