Fix running test in other dirs.
Require POST method and output proper CGI response.