Fixed a couple form/formset deprecation warnings in tests.