Fixed a deprecation warning triggered by test forms.