Added a test for clearing form errors.

Change-Id: I6139e3417b2d0f5bff9d25678213a8c56de867ff