Fix errors in form_test.go reported by Go vet