fix test failure for form redirection