Fix test failure on Py2.7.

There is one ftest failure remaining, file widget seems to wipe the field
value if no file is provided.