Make tests work with latest wtforms. (#1218)